package cn.stylefeng.guns.modular.api.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel
public class ExpertDetailDTO{

	public ExpertDetailDTO(){}

	public ExpertDetailDTO(String title, String name, String rank, String picUrl, String content) {
		this.title = title;
		this.name = name;
		this.rank = rank;
		this.picUrl = picUrl;
		this.content = content;
		this.hospitalWebUrl = DetailsPageDTO.hospitalWebInfoStr;
	}
	
	@ApiModelProperty("标题")
	private String title;
	@ApiModelProperty("姓名")
	private String name;
	@ApiModelProperty("职称")
	private String rank;
	@ApiModelProperty("头像图片地址")
	private String picUrl;
	@ApiModelProperty("页面类型")
	String content;
	@ApiModelProperty("作者")
	private String author;
	@ApiModelProperty("创建时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;
	@ApiModelProperty("医院首页地址")
	private String hospitalWebUrl;
	@ApiModelProperty("文章详情所属的模块ID")
	private String modelCode;
	@ApiModelProperty("文章详情所属模块的访问链接")
	private String modelListUrl;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getHospitalWebUrl() {
		return hospitalWebUrl;
	}

	public void setHospitalWebUrl(String hospitalWebUrl) {
		this.hospitalWebUrl = hospitalWebUrl;
	}

	public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public String getModelListUrl() {
		return modelListUrl;
	}

	public void setModelListUrl(String modelListUrl) {
		this.modelListUrl = modelListUrl;
	}
}
